import http from "@/utils/http2.js";

export function getEmpList(data) {
  return http.post("/employee/query", data);
}

export function saveEmp(data) {
  return http.post("/employee", data);
}
export function updateEmp(data) {
  return http.put("/employee", data);
}

export function updateStatus(id, status) {
  return http.put("/employee/updateStatus?id=" + id + "&status=" + status);
}

export function deleteEmp(id) {
  return http.delete("/employee", id);
}
export function queryEmpList() {
  return http.get("/employee/getEmployeeList");
}
